#include "Plugin.h"
#include "SRCommandArgument.h"
#include <QDebug>


QString RemoteLayoutsPlugin::initiate()
{
	qDebug() << "Initiating Remote layouts plugin";

	return "";
}


SRCommandList RemoteLayoutsPlugin::doCommand(SRCommand c)
{
	qDebug() << "Remote layouts plugin executing command " << c.getName();

	if(c.getName().compare("remotelayouts_list"))
	{
		QString returnString;

		returnString += "display_list";

		SRCommand returnCommand;

		SRCommandArgument layoutsArg;

		layoutsArg.setName("layouts");
		layoutsArg.addValue("Home control");
		layoutsArg.addValue("Media control");


		return SRCommandList(SRCommand(returnString));
	}


	return SRCommandList();
}


QString RemoteLayoutsPlugin::destroy()
{
	qDebug() << "Destroying Remote layouts plugin";

	return "";
}


QString RemoteLayoutsPlugin::getName()
{
	return "RemoteLayoutsPlugin";
}


QString RemoteLayoutsPlugin::getVersion()
{
	return "1.0";
}


Q_EXPORT_PLUGIN2(remotelayoutsplugin, RemoteLayoutsPlugin);
